package cn.zjitc.ioc.xml.dao.impl;

import cn.zjitc.ioc.xml.dao.UserDao;
import cn.zjitc.ioc.xml.domain.User;

import java.util.List;
import java.util.Map;
import java.util.Properties;

public class UserDaoImpl implements UserDao {
    private List<String> list;
    private String company;
    private int age;
    private Map<String, User> userMap;
    private Properties  properties;

    public void setCompany(String company) {
        this.company = company;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @Override
    public void save() {
        System.out.println("company:" + company + " age:" + age);
        System.out.println("list:" + list);
        System.out.println("userMap:" + userMap);
        System.out.println("properties:" + properties);
        System.out.println("UserDao save method running....");
    }
}
